package com.cp.helper.dao.impl;

import com.cp.helper.bean.Birthday;
import com.cp.helper.dao.BaseDaoSupport;
import org.springframework.stereotype.Repository;

/**
 * @描述:自动生成的Birthday
 * @Author : chenpeng
 * @Date : 2015-10-22 20:58:13
 */
@Repository
public class BirthdayDao extends BaseDaoSupport<Birthday> {
    public BirthdayDao() {
        super.setClassName("Birthday");
    }

    //根据主键更新特定值
    public Integer updateOwnerIdById(Birthday birthday) {
        return this.getSqlMapClientTemplate().update("Birthday.updateOwnerIdById", birthday);
    }

    public Integer updateUserNickById(Birthday birthday) {
        return this.getSqlMapClientTemplate().update("Birthday.updateUserNickById", birthday);
    }

    public Integer updateBirthYearById(Birthday birthday) {
        return this.getSqlMapClientTemplate().update("Birthday.updateBirthYearById", birthday);
    }

    public Integer updateBirthMonthById(Birthday birthday) {
        return this.getSqlMapClientTemplate().update("Birthday.updateBirthMonthById", birthday);
    }

    public Integer updateBirthDayById(Birthday birthday) {
        return this.getSqlMapClientTemplate().update("Birthday.updateBirthDayById", birthday);
    }

    public Integer updateBirthDateById(Birthday birthday) {
        return this.getSqlMapClientTemplate().update("Birthday.updateBirthDateById", birthday);
    }

    public Integer updateBirthTypeById(Birthday birthday) {
        return this.getSqlMapClientTemplate().update("Birthday.updateBirthTypeById", birthday);
    }


}
